<template>

  <div id="app">
<!--  <div id="nav">-->
<!--&lt;!&ndash;    <router-link to="/">Home</router-link> |&ndash;&gt;-->
<!--&lt;!&ndash;    <router-link to="/about">About</router-link>&ndash;&gt;-->
<!--  </div>-->
  <router-view v-wechat-title='$route.meta.title'/>
  </div>
</template>

<script>
  // import { useRouter } from 'vue-router';
  // import { getCookie } from "@/util/getCookieByName"
  // import { defineComponent, onMounted } from 'vue';
  // export default defineComponent({
  //   setup() {
  //
  //     const checkLogin = ()=>{
  //
  //       let hashUrl = location.hash.replace("#", "");
  //       console.log(hashUrl);
  //       if(!getCookie('ps') || !getCookie("cursorUsername")){
  //         useRouter().push({
  //           path: 'http://112.74.55.150:8081/web/admin/dist/',
  //
  //         })
  //       }
  //     };
  //
  //     onMounted(checkLogin);
  //
  //     return {
  //       checkLogin
  //     }
  //   }
  // })
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
